from django.core.mail import send_mail
from django.http import HttpResponse
from django.shortcuts import render_to_response

def home(request):
    return render_to_response('index.html',{'homestatus':'active'})

def mail(request):
    send_mail('New iPad', 'Hello World', 'service@appuniverz.org.tw',
    ['aquilading@gmail.com'], fail_silently=False)
    return HttpResponse('success')